#include"processBar.h"
#include<stdio.h>
#include<unistd.h>

void tmpfunc()
{
    
    int cur = 10;
    while(cur>= 0)
    {
        printf("%-2d\r",cur);
        
        fflush(stdout);
        cur--;
        sleep(1);
    }
    printf("\n");
}

int main()
{
    int total = 1000;
    int curr = 0;
    while(curr <= total)
    {
        processbar(curr * 100/total);
        curr+=10;
        usleep(50000);
    }
    printf("\n");
    return 0;
}


